import request from '@/utils/request';

// 根据项目名称获取柜体
export async function getProductInfoByPageAndInfoId(params: any) {
  return request('/api/project/getProductInfoByPageAndInfoId', {
    method: 'POST',
    data: params,
  });
}

// 根据柜体编号获取工时
export async function getWorkingHoursComparisonsByProductCode(param: any) {
  return request('/api/product/getWorkingHoursComparisonsByProductCode', {
    method: 'POST',
    params: {
      productCode: param,
    },
  });
}

export default { getProductInfoByPageAndInfoId, getWorkingHoursComparisonsByProductCode }